/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="KARNOFSKI")
public class KarnofskiProteu implements Serializable{

    @Id
    @Column(name="KAR_IN_CODIGO")
    private Integer karInCodigo;
    @Column(name="KAR_FL_INDICE")
    private Float karFlIndice;
    @Column(name="KAR_ST_DESCRICAO")
    private String karStDescricao;


    public Float getKarFlIndice() {
        return karFlIndice;
    }

    public void setKarFlIndice(Float karFlIndice) {
        this.karFlIndice = karFlIndice;
    }

    public Integer getKarInCodigo() {
        return karInCodigo;
    }

    public void setKarInCodigo(Integer karInCodigo) {
        this.karInCodigo = karInCodigo;
    }

    public String getKarStDescricao() {
        return karStDescricao;
    }

    public void setKarStDescricao(String karStDescricao) {
        this.karStDescricao = karStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final KarnofskiProteu other = (KarnofskiProteu) obj;
        if (this.karInCodigo != other.karInCodigo && (this.karInCodigo == null || !this.karInCodigo.equals(other.karInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 71 * hash + (this.karInCodigo != null ? this.karInCodigo.hashCode() : 0);
        return hash;
    }


}
